<template>
  <div class="content">
    <div class="line"></div>
    <el-menu
      :default-active="activeIndex2"
      class="el-menu-demo"
      mode="horizontal"
      @select="handleSelect"
      background-color="#333"
      text-color="#fff"
      active-text-color="#ffd04b"
    >
      <el-menu-item index="1">关于</el-menu-item>
      <el-submenu index="2">
        <template slot="title">门户中心</template>
        <el-menu-item index="2-1">开源</el-menu-item>
        <el-menu-item index="2-2">成就系统</el-menu-item>
        <el-menu-item index="2-3">加入我们</el-menu-item>
      </el-submenu>
     
    </el-menu>
  </div>
</template>
  
  <script>
export default {
  data() {
    return {
      activeIndex: "1",
      activeIndex2: "1",
    };
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    },
  },
};
</script>